@import "true";
@import "../settings/settings.core";
@import "../tools/tools.font-size";



@include test-module("[mixin] inuit-font-size") {

  @include test("it should output a font-size and line-height based on a given input") {

    @include assert() {

      @include output {
        @include inuit-font-size(16px);
      }

      @include expect {
        font-size: 16px;
        font-size: 1rem;
        line-height: 1.5;
      }
    }
  }

  @include test("it should output a font-size and line-height when specifying a line-height") {

    @include assert() {

      @include output {
        @include inuit-font-size(18px, 2);
      }

      @include expect {
        font-size: 18px;
        font-size: 1.125rem;
        line-height: 2;
      }
    }
  }

  @include test("it should output a font-size as important when passing true") {

    @include assert() {

      @include output {
        @include inuit-font-size(21px, $important: true);
      }

      @include expect {
        font-size: 21px !important;
        font-size: 1.3125rem !important;
        line-height: 1.42857 !important;
      }
    }
  }

  @include test("it should output a bigger line-height when passing a positive modifier") {

    @include assert() {

      @include output {
        @include inuit-font-size(24px, $modifier: +2);
      }

      @include expect {
        font-size: 24px;
        font-size: 1.5rem;
        line-height: 1.75;
      }
    }
  }

  @include test("it should output a lower line-height when passing a negative modifier") {

    @include assert() {

      @include output {
        @include inuit-font-size(32px, $modifier: -1);
      }

      @include expect {
        font-size: 32px;
        font-size: 2rem;
        line-height: 1.125;
      }
    }
  }
}

